//package com.cisdi.info.simple.service.permission.impl;
//
//import com.cisdi.info.simple.service.base.BaseService;
//import com.cisdi.info.simple.service.organization.EmployeeService;
////import com.cisdi.info.simple.dao.permission.OperatorDao;
//import com.cisdi.info.simple.dto.operator.LoginDTO;
//import com.cisdi.info.simple.entity.organization.Employee;
//import com.cisdi.info.simple.entity.permission.LoginUser;
//import com.cisdi.info.simple.entity.permission.Operator;
//import com.cisdi.info.simple.service.permission.OperatorService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//
//public class OperatorServiceBean1 extends BaseService implements OperatorService {
//
//    @Autowired
////    private OperatorDao operatorDao;
//
////    @Autowired
//    private EmployeeService employeeService;
//
//    public Map<String,Object> checkOperatorByUserNameAndPassWord(LoginDTO loginDTO)
//    {
////        try {
////            Map<String,Object> restult = new HashMap<String,Object>();
////                Operator operator =  this.operatorDao.findOperatorByUserNameAndPassWord(loginDTO);
////                if(operator != null)
////                {
////                    restult.put("isLogin",true);
////                    restult.put("loginUser",this.setLoginUser(operator));
////                }
////                else {
////                    restult.put("isLogin",false);
////                }
////                return  restult;
////        } catch (Exception e) {
////            e.printStackTrace();
////        }
//
//        return null;
//    }
//
//    private LoginUser setLoginUser(Operator userOperator) throws Exception {
////        try {
////
////            Employee employee = this.employeeService.findEmployeeByOperatorId(userOperator.getEId());
////            List<String> permissionCodes = this.operatorDao.findPermissionsByOperatorId(userOperator.getEId());
////
////            LoginUser loginUser = new LoginUser();
////            loginUser.setLoginOperator(userOperator);
////            loginUser.setLoginEmployee(employee);
////            loginUser.setUserPermissionsCode(permissionCodes);
////            loginUser.setUserName(userOperator.getName());
////
////            this.setLoginUser(loginUser);
////            return loginUser;
////        } catch (Exception e) {
////            e.printStackTrace();
////        }
//        return null;
//    }
//
//}
